let fun={
    queryOnline:()=>{
        fetch(window.server_path+window.server_post.queryOline,{
            method:"POST",
            headers:{"Content-Type":"application/json"},
            body:JSON.stringify({
                data:JSON.stringify({
                    phone:window.sessionStorage.getItem("phone"),
                    command:window.localStorage.getItem("command")
                })
            })
        }).then(re=>{return re.json();}).then(da=>{
            if(da.status){
                document.getElementById("online_num").innerText=da.online;
            }else window.crlog.warning(da.tip);
        })
    },
    queryPetCarryNum: ()=>{
        fetch(window.server_path+window.server_post.queryPetCarryNum,{
            method:"POST",
            headers:{"Content-Type":"application/json"},
            body:JSON.stringify({
                data:JSON.stringify({
                    phone:window.sessionStorage.getItem("phone"),
                    command:window.localStorage.getItem("command")
                })
            })
        }).then(re=>{return re.json()}).then(da=>{
            if(!da.status)return;
            document.getElementById("carry_num").innerHTML=da.carryNum;
        })
    },
    queryPetCarryRobNum: ()=>{
        fetch(window.server_path+window.server_post.queryPetCarryRobNum,{
            method:"POST",
            headers:{"Content-Type":"application/json"},
            body:JSON.stringify({
                data:JSON.stringify({
                    phone:window.sessionStorage.getItem("phone"),
                    command:window.localStorage.getItem("command")
                })
            })
        }).then(re=>{return re.json()}).then(da=>{
            if(!da.status)return;
            document.getElementById("carry_rob_num").innerHTML=da.carryRobNum;
        })
    }
}
fun.queryOnline();
fun.queryPetCarryNum();
fun.queryPetCarryRobNum();